import './assets/main.css'
import "./assets/style.css"

import { createApp } from 'vue'
import App from './App.vue'
import Router from "@/router/index.js";

createApp(App).use(Router).mount('#app')

createApp(App).config.errorHandler = (err) => {
    console.error('Vue error:', err)
}

// 添加一些全局游戏配置
window.GAME_CONFIG = {
    version: "1.0.9",
    debug: import.meta.env.DEV,
    canvas: {
        width: 3200,
        height: 400,
    },
    performance: {
        targetFPS: 60,
        enableOptimizations: true,
    },
}

// 性能监控（开发环境）
if (import.meta.env.DEV) {
    console.log("🐍 贪吃蛇游戏启动 - 开发模式")
    console.log("游戏配置:", window.GAME_CONFIG)
}
